import {axios} from '@/utils/request'

const prefix = '/wfuAlarm';

export function morningAlarmCount(params) {
  return axios({
    url: prefix + '/morningAlarmCount',
    method: 'GET',
    params
  })
}

export function afternoonAlarmCount(params) {
  return axios({
    url: prefix + '/afternoonAlarmCount',
    method: 'GET',
    params
  })
}

export function eveningAlarmCount(params) {
  return axios({
    url: prefix + '/eveningAlarmCount',
    method: 'GET',
    params
  })
}
export function pageErrorAlarmList(params) {
  return axios({
    url: prefix + '/pageErrorAlarmList',
    method: 'GET',
    params
  })
}

export function pageAllAlarmList(params) {
  return axios({
    url: prefix + '/pageAllAlarmList',
    method: 'GET',
    params
  })
}


export function processAlarmPage(params) {
  return axios({
    url: prefix + '/processAlarmPage',
    method: 'GET',
    params: params
  })
}


/**
 * 分页查询时间段签到记录详情
 * @param params
 * @returns {AxiosPromise}
 */
export function getInfoByStudentId(params) {
  return axios({
    url: '/wfucheckin/getInfoByStudentId',
    method: 'GET',
    params: params
  })
}

/**
 * 分页查询时间段签到记录详情
 * @param params
 * @returns {AxiosPromise}
 */
export function listDescription() {
  return axios({
    url: prefix + '/listDescription',
    method: 'GET',
  })
}

/**
 * 分页查询时间段签到记录详情
 * @param params
 * @returns {AxiosPromise}
 */
export function processAlarm(params) {
  return axios({
    url: prefix + '/processAlarm',
    method: 'POST',
    data: params
  })
}

/**
 * 分页查询时间段签到记录详情
 * @param params
 * @returns {AxiosPromise}
 */
export function getAlarmInfo(params) {
  return axios({
    url: prefix + '/getAlarmInfo',
    method: 'GET',
    params: params
  })
}

export function runExceptionCheck () {
  return axios({
    url: prefix + '/runExceptionCheck',
    method: 'GET'
  })
}